package com.example.domain.thirdPartyResponseParam;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
public class ZhihuiyaAuthenticationResponse extends ZhihuiyaApiResponse{

    private Data data; // 具体的数据部分
    private String errorMsg; //

    @lombok.Data
    @EqualsAndHashCode(callSuper=false)
    public static class Data extends ZhihuiyaApiResponse.Data{
        @JsonProperty("expires_in")
        private String expiresIn; // 过期时间
        @JsonProperty("issued_at")
        private String issuedAt; // 签发时间
        private String status; // 状态
        private String token; // 令牌
        @JsonProperty("token_type")
        private String tokenType; // 令牌类型
    }
}
